﻿@model IEnumerable<BaseData.Model.Order>
@{
    ViewBag.Title = "订单管理";
}
@*@Html.Partial("~/Views/Shared/_OrderTitle.cshtml")*@

<div class="panel panel-default">
    <div class="panel-heading">
        <div class="row">
            <div class="col-xs-8 col-sm-8 col-md-6 col-lg-10">

                @using (Ajax.BeginForm("Index", new RouteValueDictionary { { "id", "" } }, new AjaxOptions { UpdateTargetId = "orderlist", HttpMethod = "Get", InsertionMode = InsertionMode.Replace }, new RouteValueDictionary { { "id", "searchForm" }, { "class", "bs-example bs-example-form" }, { "role", "form" } }))
                {
                    <div class="row">
                        <div class="col-md-3">
                            <select class="form-control" name="status" id="status">
                                <option value="-1">=请选择状态=</option>
                                <option value="0">已提交</option>
                                <option value="1">配送中</option>
                                <option value="2">已收货</option>
                                <option value="3">退货</option>
                            </select>
                        </div>
                        <div class="col-md-5">
                            <div class="input-group">
                                <input type="text" class="form-control" name="key" id="key" placeholder="查询条件：订单编号,订购账号">

                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="submit">
                                        <span class="glyphicon glyphicon-search"></span>
                                    </button>
                                </span>
                            </div>

                        </div>
                    </div>

                }
            </div>

        </div>

    </div>
    <div class="panel-body">
        <div id="orderlist">
            @Html.Partial("_OrdersSearchGet", Model)
        </div>
    </div>
</div>



<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">订单明细</h4>
            </div>
            <div class="modal-body">
                <ul>
                    <li><label>订单编号</label></li>
                    <li><label></label></li>
                    <li><label></label></li>
                </ul>
            </div>

            <div class="modal-footer">
                <div class="alert alert-danger" style="display:none" id="errmsg">输出数据不合法，请检查重新输入！</div>
                <button type="button" class="btn btn-default" data-dismiss="modal"><span style="cursor:pointer" class="glyphicon glyphicon-remove"></span>关闭</button>
                <button id="save" type="button" class="btn btn-primary">
                    <span class="glyphicon glyphicon-ok"></span> 提交
                </button>
            </div>
        </div>
    </div>
</div>

@section Scripts {
    <script>
        $(function () {
            $("[data-toggle='tooltip']").tooltip();
        });

    </script>
}


